import request from '@/utils/request'


  export function getTaskJson(data) {
    return request({
      url: '/survey/task/task.json',
      method: 'get',
      params: data
    })
  }

export function getLayerDist(data) {
  return request({
    url: '/survey/task/queryLayerDist',
    method: 'get',
    params: data
  })
}

export function getLayerDistIds(data) {
  return request({
    url: '/survey/task/task.layerdistids',
    method: 'get',
    params: data
  })
}



export function saveTask(data) {
  return request({
    url: '/survey/task/save.taskDist',
    method: 'post',
    params: data
  })
}

export function getLayerInfo(data) {
  return request({
    url: '/survey/task/task.layerinfo',
    method: 'get',
    params: data
  })
}

export function getFeatures(data) {
  return request({
    url: '/survey/task/features.bysql',
    method: 'get',
    params: data
  })
}

export function getFeaturesBySurveyid(data) {
  return request({
    url: '/survey/task/feature.dist',
    method: 'get',
    params: data
  })
}

